<?php
if($this->exception) {
	echo '<div class="msg">';
	echo '<div class="common error">';
	echo '<i class="icon"></i>';
	echo '<h4>';
	if(is_string($this->exception)) {
		echo htmlspecialchars($this->exception);
	} elseif(is_array($this->exception)) {
		foreach($this->exception as $exception) {
			$text = is_string($exception) ? $exception : $exception->getMessage();
			echo htmlspecialchars($text) . '<br/>';
		}
	} else {
		echo htmlspecialchars($this->exception->getMessage());
	}
	echo '</h4>';
	echo '</div>';
	echo '</div>';
	echo "\n";
}
?>